package com.umeox.moto.watch.themes.skin.entity;

import android.view.View;

import com.umeox.moto.watch.themes.skin.loader.ResourceManager;
import com.umeox.moto.watch.themes.widget.ActionBar;


public class ActionBarIconAttr extends SkinAttr {

    @Override
    public void apply(View view) {
        if(view instanceof ActionBar){
            ActionBar actionBar = (ActionBar)view;
            if(RES_TYPE_NAME_DRAWABLE.equals(attrValueTypeName)){
                actionBar.setIconDrawable(ResourceManager.getInstance().getDrawable(attrValueRefId));
            }
        }
    }
}
